package com.example.blog.service;

import com.example.blog.dto.UserAdminDTO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

public interface UserAdminService {
    Page<UserAdminDTO> getAllUsers(String keyword, Pageable pageable);
    UserAdminDTO getUserById(Long id);
    UserAdminDTO updateUser(Long id, UserAdminDTO userDTO);
    void deleteUser(Long id);
    void enableUser(Long id);
    void disableUser(Long id);
    void grantAdminRole(Long id);
    void revokeAdminRole(Long id);
    void resetPassword(Long id);
    Page<UserAdminDTO> getInactiveUsers(int days, Pageable pageable);
    Page<UserAdminDTO> getNewUsers(int days, Pageable pageable);
} 